package com.jlkf.controller;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jlkf.service.CourseService;
import com.platform.server.response.response.pojo.ReturnData;

@Controller
@RequestMapping(value="course")
public class CouserController {

	@Autowired
	private CourseService courseService;
	
	@ResponseBody
	@RequestMapping(value="myOrderInfo")
	 public ReturnData myCourseInfo(Long userId,Long orderId,Integer type,Integer status,String orderNo,Long goodsId,Integer pageSize,Integer pageNumber,Integer moneyStatus){
		 
		return courseService.myCourseInfo(userId,orderId,type,status,orderNo,goodsId,pageSize,pageNumber,moneyStatus);
	 } 
	
	@ResponseBody
	@RequestMapping(value="deleteOrCancel")
	 public ReturnData deleteOrCancel(Long gId,Integer status){
		 
		return courseService.deleteOrCancel(gId, status);
	 } 
}
